import { makeAutoObservable }  from 'mobx';
const { http } = require("@/utils");

class UserStore {
    user = {}
    constructor() {
        makeAutoObservable(this)
    }

    getUser = async () => {
        const res = await http.get('/user/profile')
        this.user = res.data
    }
}

export default UserStore